﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using iMapa.Backend;
using iMapa.UI.ModelView.Main;

namespace iMapa.UI.View.Simulation
{
    /// <summary>
    /// Interaction logic for SimulatorToolbar.xaml
    /// </summary>
    public partial class SimulatorToolbar : UserControl
    {
        public SimulatorToolbar()
        {
            InitializeComponent();
        }

        private void start_Click(object sender, RoutedEventArgs e)
        {
            GroupViewModel gmv = (GroupViewModel)this.DataContext;
            SimulationController.getInstance().StartSimulation(gmv);
        }

        private void stop_Click(object sender, RoutedEventArgs e)
        {
            GroupViewModel gmv = (GroupViewModel)this.DataContext;
            SimulationController.getInstance().StopSimulation();
        }


    }
}
